package com.farm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 发布文章
 * </p>
 *
 * @author farm
 * @since 2023-10-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Commited implements Serializable {

    private static final long serialVersionUID=1L;
    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(value = "commit_id", type = IdType.AUTO)
    private Long commitId;
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    /**
     * 内容
     */
    private String content;

    /**
     * 图片集合
     */
    private String picList;

    /**
     * 点赞
     */
    private Integer liking;

    /**
     * 收藏
     */
    private Integer collection;


    private Long videoId;
    private Integer state;
    private String label;
    @JsonSerialize(using= ToStringSerializer.class)
    private Long partitions;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)

    private LocalDateTime updateTime;


}
